<div id="tab-filesystem_settings" class="<%= 'active' if 'filesystem' == params[:tab] %> tab-pane ">
    <div class="form-group">
        <%= label_tag t('camaleon_cms.admin.settings.aws', default: "Save Files in AWS S3") %><br>
        <%= check_box :options, :filesystem_type, {checked: @site.get_option("filesystem_type") == "s3"}, "s3", "local" %>
    </div>
    <div class="toggleable">
        <div class="form-group">
            <%= label_tag t('camaleon_cms.admin.settings.filesystem_s3_access_key') %> <small>(*)</small><br>
            <%= text_field :options, :filesystem_s3_access_key, :class => "form-control required", value: @site.get_option("filesystem_s3_access_key"), placeholder: 'AKIAJAwdgTSHWLAD5VGA' %>
        </div>
        <div class="form-group">
            <%= label_tag t('camaleon_cms.admin.settings.filesystem_s3_secret_key') %> <small>(*)</small><br>
            <%= text_field :options, :filesystem_s3_secret_key, :class => "form-control required", value: @site.get_option("filesystem_s3_secret_key"), placeholder: 'f5T2CntRcPQBPzACBHUyvM4zEpkiZdH/77N85seBM' %>
        </div>
        <div class="form-group">
            <%= label_tag t('camaleon_cms.admin.settings.filesystem_s3_bucket_name') %> <small>(*)</small><br>
            <%= text_field :options, :filesystem_s3_bucket_name, :class => "form-control required", value: @site.get_option("filesystem_s3_bucket_name"), placeholder: 'my_bucket' %>
        </div>
        <div class="form-group">
            <%= label_tag t('camaleon_cms.admin.settings.filesystem_region', default: 'filesystem_region') %> <small>(*)</small><br>
            <%= text_field :options, :filesystem_region, :class => "form-control required", value: @site.get_option("filesystem_region"), placeholder: 'us-west-2' %>
        </div>
        <div class="form-group">
            <%= label_tag t('camaleon_cms.admin.settings.filesystem_s3_endpoint', default: 'filesystem_s3_endpoint') %><br>
            <%= text_field :options, :filesystem_s3_endpoint, :class => "form-control required", value: @site.get_option("filesystem_s3_endpoint"), placeholder: 's3-us-west-2.amazonaws.com' %>
        </div>
        <div class="form-group">
            <%= label_tag t('camaleon_cms.admin.settings.filesystem_s3_cloudfront', default: 'Cloudfront URL') %><br>
            <%= text_field :options, :filesystem_s3_cloudfront, :class => "form-control", value: @site.get_option("filesystem_s3_cloudfront"), placeholder: 'https://cloudfront_id.cloudfront.net' %>
        </div>
    </div>
</div>
